<%--
  Created by IntelliJ IDEA.
  User: 老白
  Date: 2021/6/18
  Time: 16:40
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>订单管理</title>
</head>
<body>
<div id="all">
    <div class="header container-fluid">
        <%@include file="modeHeader.jsp" %>
    </div>
    <div class="container-fluid">
        <div class="row border" style="height: 65vh;">
            <div class="col-sm-3 ">
                <%@include file="modeLeftList.jsp" %>
            </div>
            <div class="col-sm-9 border h-100 d-inline-block overflow-auto">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th scope="col">订单号</th>
                        <th scope="col">书籍名称</th>
                        <th scope="col">购书用户</th>
                        <th scope="col">购书数量</th>
                        <th scope="col">合计金额</th>
                        <th scope="col">购书时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach var="order" items="${orderList}">
                        <tr>
                            <td>${order.orderId}</td>
                            <td>${order.bookName}</td>
                            <td>${order.username}</td>
                            <td>${order.number}</td>
                            <td>${order.money}</td>
                            <td>${order.buyTime}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <%@include file="foot.jsp" %>
</div>
</body>
</html>
